package core;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import org.apache.mina.core.session.IoSession;


public final class Global {
	private static Global instance ;

	public static Global getInstance() {
		if(instance==null){
			//EIMLogger.INFO("正在初始化服务器的缓存组件....");
			instance = new  Global();
		}
		return instance;
	}
	private static int connectPort;
	private static int connectMethod;
	public int getConnectMethod() {
		return connectMethod;
	}
	public void setConnectMethod(int connectMethod) {
		Global.connectMethod = connectMethod;
	}
	private static String connectAddr;
	public String getConnectAddr() {
		return connectAddr;
	}
	public void setConnectAddr(String connectAddr) {
		Global.connectAddr = connectAddr;
	}
	// serverAddr;
	private static int listenPort;
	private static int heartbeat;
	public  int getHeartbeat() {
		return heartbeat;
	}
	public void setHeartbeat(int heartbeat) {
		Global.heartbeat = heartbeat;
	}
	private static boolean isAccessed;
	private static boolean isLinkToPC;
	
	private static String updateVersion_android;
	
	public String getUpdateVersion_android() {
		return updateVersion_android;
	}
	public void setUpdateVersion_android(String updateVersion_android) {
		Global.updateVersion_android = updateVersion_android;
	}
	public boolean isLinkToPC() {
		return isLinkToPC;
	}
	public void setLinkToPC(boolean isLinked) {
		isLinkToPC = isLinked;
	}
	private static boolean isBinding;
	
	public boolean getBinding() {
		return isBinding;
	}
	public void setBinding(boolean isBinding) {
		this.isBinding = isBinding;
	}
	
	public int getConnectPort() {
		return connectPort;
	}
	public void setConnectPort(int connectPort) {
		this.connectPort = connectPort;
	}
	public int getListenPort() {
		return listenPort;
	}
	public void setListenPort(int listenPort) {
		this.listenPort = listenPort;
	}
	public boolean getIsAccessed() {
		return isAccessed;
	}
	public void setIsAccessed(boolean isAccessed) {
		this.isAccessed = isAccessed;
	}
}
